package com.lcxsoft.userservice.mapper;

import com.lcxsoft.userservice.entity.CustomUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lcxsoft.userservice.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2022-01-12
 */
@Mapper
public interface CustomUserMapper extends BaseMapper<CustomUser> {

    String selectDormitoryId(@Param("schoolName") String schoolName,
                             @Param("bulidingName") String bulidingName,
                             @Param("dormitoryName") String dormitoryName);

    List<UserVo> selectUserList(@Param("userNickname") String userNickname);


    Integer countUserByTime(@Param("beginDate") String morning, @Param("endDate") String night);
}
